<template>
  <div class="app">
    <div v-if="isshow">
      <h4>父组件 -- <button @click="handerInfo">编辑</button></h4>
    </div>
    <BaseForm ref="base" :isshow="isshow2"></BaseForm>
  </div>
</template>

<script setup lang="ts">
import {ref} from "vue";
import BaseForm from "./components/BaseForm.vue";

const base = ref();
const isshow = ref(true);
const isshow2 = ref(false);
const handerInfo = () => {
  isshow2.value = true;
  isshow.value = false;
  if (isshow.value === false) {
    base.value.fin();
  }
};
</script>

<style></style>
